#ifndef RANDOMGENERATOR_H
#define RANDOMGENERATOR_H

#include <QTime>

class RandomGenerator
{
public:
    explicit RandomGenerator(){}
    static int generateRand(int left, int right)
    {
        if (right < left) return 0;
        int v = right - left + 1;

        int result = abs(qrand()) % v;
        return result + left;
    }

};

#endif // RANDOMGENERATOR_H
